# $OpenBSD: Makefile,v 1.13 2013/03/11 11:07:38 espie Exp $

COMMENT=	eboard extra piece sets and sounds

PKGNAME=	${DISTNAME}-0.1
REVISION =	0
DISTNAME=	eboard-extras
DISTFILES=	${DISTNAME}-1pl2${EXTRACT_SUFX} \
		${DISTNAME}-2${EXTRACT_SUFX}
CATEGORIES=	games x11

HOMEPAGE=	http://www.bergo.eng.br/eboard/

PERMIT_PACKAGE_CDROM=   Yes

MASTER_SITES=	${MASTER_SITE_SOURCEFORGE:=eboard/}

RUN_DEPENDS=	games/eboard

NO_BUILD=	Yes
NO_TEST=	Yes
PKG_ARCH=	*

do-install:
	$(INSTALL_DATA_DIR) $(PREFIX)/share/eboard
	$(INSTALL_DATA_DIR) $(PREFIX)/share/doc/eboard
	cd ${WRKDIR}/${DISTNAME}-1pl2 && {			\
	  $(INSTALL_DATA) *.png *.wav $(PREFIX)/share/eboard;	\
	  $(INSTALL_DATA) extras1.conf				\
	    $(PREFIX)/share/eboard/themeconf.extras1;		\
	  $(INSTALL_DATA) CREDITS				\
	    $(PREFIX)/share/doc/eboard/CREDITS.1;		\
	}
	cd ${WRKDIR}/${DISTNAME}-2 && {				\
	  $(INSTALL_DATA) *.png *.wav $(PREFIX)/share/eboard;	\
	  $(INSTALL_DATA) extras2.conf				\
	    $(PREFIX)/share/eboard/themeconf.extras2;		\
	  $(INSTALL_DATA) CREDITS				\
	    $(PREFIX)/share/doc/eboard/CREDITS.2;		\
	}

.include <bsd.port.mk>
